let result = {};

/**
 * 处理http请求
 */
result.success = (data,code,msg)=>{
    return {
        data,
        code,
        msg,
        success:true
    };
}

/**
 * 处理http请求
 */
result.error = (code,msg)=> {
    return {
        code,
        msg,
        success: false
    };
}

module.exports = result;